package org.fglxy.mockserver.dto;

import org.fglxy.mockserver.enums.RetCodeEnum;

public class BaseRespDTO extends BaseObject {
	private RetCodeEnum code;
	private String message;
	
	public BaseRespDTO() {
		this.code = RetCodeEnum.SUCCESS;
	}
	
	public BaseRespDTO(RetCodeEnum code) {
		this.code = code;
		this.message = code.getDesc();
	}
	
	public BaseRespDTO(RetCodeEnum code, String message) {
		this.code = code;
		this.message = message;
	}

	public RetCodeEnum getCode() {
		return this.code;
	}
	public void setCode(RetCodeEnum code) {
		this.code = code;
		this.message = code.getDesc();
	}
	public String getMessage() {
		return this.message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

}